package com.imooc.pojo.vo;

import lombok.Data;

/**
 * 用于展示商品列表结果的VO
 */
@Data
public class SearchItemsVO {
    private String itemId;
    private String itemName;
    private Integer sellCounts;
    private String imgUrl;
    //我们在数据库里保存的是以分为单位的,所以前端需要除以100,而且用的是integer而不是decimal
    private Integer price;

    // SELECT i.id                    AS itemId,
    // i.item_name             AS itemName,
    // i.sell_counts           AS sellCounts,
    // ii.url                  AS imgUrl,
    // tempSpec.price_discount as price
}